//
//  FileCacheManager.m
//  first app
//
//  Created by 林 小明 on 14-7-10.
//
//

#import "FileCache.h"

@implementation FileCache

-(id) initWithData:(NSMutableArray *)indexContent
{
    titleIndexsCache = indexContent;
    return [super init];
}

//将对象编码(即:序列化)
-(void) encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:titleIndexsCache forKey:@"content"];
}

//将对象解码(反序列化)
-(id) initWithCoder:(NSCoder *)aDecoder
{
    if (self=[super init])
    {
        titleIndexsCache = [aDecoder decodeObjectForKey:@"content"];
    }
    return (self);
}

-(NSMutableArray *)getContent
{
    return titleIndexsCache;
}

@end
